import request from '@/utils/request'

// 查询档案查阅管理功能列表
export function listRegister(query) {
  return request({
    url: '/system/register/list',
    method: 'get',
    params: query
  })
}

// 查询档案查阅管理功能详细
export function getRegister(id) {
  return request({
    url: '/system/register/' + id,
    method: 'get'
  })
}

// 新增档案查阅管理功能
export function addRegister(data) {
  return request({
    url: '/system/register',
    method: 'post',
    data: data
  })
}

// 修改档案查阅管理功能
export function updateRegister(data) {
  return request({
    url: '/system/register',
    method: 'put',
    data: data
  })
}

// 删除档案查阅管理功能
export function delRegister(id) {
  return request({
    url: '/system/register/' + id,
    method: 'delete'
  })
}

export function sumPeople() {
  return request({
    url: '/system/register/sumPeople/',
    method: 'get',
  })
}
export function sumVolume() {
  return request({
    url: '/system/register/sumVolume/',
    method: 'get',
  })
}
